package com.xiaoyu.awakening.common.es.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * elasticsearch 配置类
 *
 * @author wangxiaoyu
 * @since v1.0
 */
@ConfigurationProperties(prefix = "awk.elasticsearch.config")
@Configuration
@Data
public class ElasticsearchConfig {
    private List<String> hosts;
    private String clusterName;
    private String authorization;
    private Boolean enableDslLog = false;
    private Boolean enableHealthCheck = false;
    private Long healthCheckIntervalMs = 20000L;
    private Integer warningWhenCheckErrorTimes = 5;
    private Long timeoutLogMs = 1000L;
}
